//
//  YCNewTableViewCell.m
//  LOLBox
//
//  Created by mac on 15-3-12.
//  Copyright (c) 2015年 Honey. All rights reserved.
//

#import "YCNewTableViewCell.h"
#import "YCNewsView.h"

@interface YCNewTableViewCell ()
{
    YCNewsView *_view;
}

@end

@implementation YCNewTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        _view = [[YCNewsView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, 95)];
        
        [self.contentView addSubview:_view];
    }
    return self;
}

- (void)fillCellWithModel:(YCNewSModel *)model
{
    [_view fillCellWithModel:model];
    //NSLog(@"1--sdasdasda");
}

- (void)awakeFromNib
{

    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
